package com.xiaolai.iodemo.Validate.handler;

import com.xiaolai.iodemo.Validate.annotaction.ValidateCustomHandler;
import com.xiaolai.iodemo.Validate.core.HandlerDefinition;
import com.xiaolai.iodemo.Validate.core.ValidateHandler;
import com.xiaolai.iodemo.Validate.core.ValidateException;
import com.xiaolai.iodemo.Validate.structure.Target;

import java.lang.reflect.Field;

/**
 * 判断该字段是否是IP地址.如果不是,抛出ValidateException异常
 * Created by Administrator on 2015/12/8.
 */
@ValidateCustomHandler(HandlerDefinition.IPV4)
public class Ipv4handler implements ValidateHandler {

    @Override
    public void validate(Field field) throws ValidateException {

    }

    protected void verify(String pendingString) throws ValidateException {

    }
}

